package com.data;

public class Test_1 {
    public static void main(String[] args) {
//        int []arr={1,2,4,6,89,46,96};
//        for(int x:arr){
//            System.out.println(x);
//        }

        Son son = new Son(89,"jaoc",13);

    }
}

class Father{
    private int age;
    public String name;
    Father(String name,int age){
        this.name=name;
        this.age=age;
        System.out.println("调用father的有参构造器");
    }
    Father(){
        System.out.println("调用Father的无参构造器");
    }
    {
        System.out.println("调用Father的普通代码块");
    }
    static{
        System.out.println("调用Father的静态代码块");
    }
}

class Son extends Father{
    private double score;
    Son(){
        System.out.println("调用Son的无参构造器");
    }
    Son(double score,String name,int age){
        super(name, age);
        this.score=score;
        System.out.println("调用Son的有参构造器");
    }
    {
        System.out.println("调用son的普通代码块");
    }
  static  {
        System.out.println("调用son的静态代码块");
    }
}